package com.jx.driving.request;

import com.jx.driving.message.TimeTerminalRequestMessage;
import com.jx.driving.protocol.terminal.annotation.DwordAnnotation;
import com.jx.driving.protocol.terminal.annotation.LimitedStringAnnotation;
import com.jx.driving.protocol.terminal.annotation.TerminalAnnotation;

/**
 * 平台登录请求
 * 
 * @author shenliuyang
 *
 *         2016年8月12日下午3:45:25
 */
@TerminalAnnotation
public class Terminal0x01F0Request extends TimeTerminalRequestMessage {

    @LimitedStringAnnotation(value = 5, order = 1)
    private String platformCode;// 平台编号
    @LimitedStringAnnotation(value = 8, order = 2)
    private String password;// 密码
    @DwordAnnotation(order = 3)
    private long enterCode;// 平台接入码

    public String getPlatformCode() {
	return platformCode;
    }

    public void setPlatformCode(String platformCode) {
	this.platformCode = platformCode;
    }

    public String getPassword() {
	return password;
    }

    public void setPassword(String password) {
	this.password = password;
    }

    public long getEnterCode() {
	return enterCode;
    }

    public void setEnterCode(long enterCode) {
	this.enterCode = enterCode;
    }

    @Override
    public String toString() {
	StringBuilder builder = new StringBuilder();
	builder.append("Terminal0X01F0Request [platformCode=").append(platformCode).append(", password=")
		.append(password).append(", enterCode=").append(enterCode).append("]");
	return builder.toString();
    }

}
